package org.example.commonapi.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import org.apache.ibatis.annotations.Param;
import org.example.commonapi.domain.CollectPractice;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.example.commonapi.dto.PracticeDto;
import org.example.commonapi.dto.PracticeInfoDto;

import java.util.List;

/**
* @author DELL
* @description 针对表【collect_practice(收藏表)】的数据库操作Mapper
* @createDate 2024-06-02 21:26:27
* @Entity org.example.commonapi.domain.CollectPractice
*/
public interface CollectPracticeMapper extends BaseMapper<CollectPractice> {

    List<PracticeInfoDto> collectPracticeIdList(@Param("difficulty") Integer difficulty, @Param("type") Integer type, @Param("name") String name, @Param("subject") String subject, @Param("id") Long id);


    IPage<PracticeInfoDto> collectPracticeList(IPage<PracticeInfoDto> page, @Param("difficulty") Integer difficulty, @Param("type") Integer type, @Param("name") String name, @Param("subject") String subject, @Param("id") Long id);
}




